home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
sys
/
msys_1_2.lha
/
Doc
/
loadwb.doc
< prev
next >
Wrap
Text File
|
1996-07-23
|
4KB
|
90 lines
C/LoadWB C/LoadWB
NAME
LoadWB -- start Workbench. (V42)
SYNOPSIS
LoadWB [-DEBUG] [DELAY] [CLEANUP] [NEWPATH] [HIDE] [RAMICON]
TEMPLATE
LoadWB "DEBUG=-DEBUG/S,DELAY/S,CLEANUP/S,NEWPATH/S,HIDE/S,RAMICON/S"
FUNCTION
This command will try to load and start Workbench. If RAMICON option
is used, LoadWB will use 'ENV:Sys/def_ramdisk.info' icon for the
Ram-Disk icon. If NEWPATH option is used, LoadWB will replace a
current Workbench search path with a search path of Shell from which
the LoadWB was issued. If Workbench is already running, the command
will do nothing (unless NEWPATH or RAMICON option is used).
INPUTS
-DEBUG - adds 'Debug' menu to the Workbench menus. There are two
items under this menu:
'ROMWack' starts internal ROM debugger, which requires
a terminal to be connected to the Amiga internal serial
port.
'Flushlibs' removes all libraries, devices and fonts
currently not in use thus freeing some memory.
DELAY - forces LoadWB command not to return until Workbench is
completely initialized (i.e. all disk icons are loaded and
all WBStartup programs are started). If DELAY option does
not appear, LoadWB command will return as soon as Workbench
is started.
CLEANUP - forces Workbench to execute 'Clean Up' function for main
Workbench window after starting.
NEWPATH - lets you change current Workbench path. Normally, Workbench
remembers path of the Shell that started Workbench. This
path is inherited by all programs strated from Workbench.
To change path of already running Workbench, you must use
NEWPATH option. If Workbench has not been started yet, this
option is ignored.
HIDE - Workbench has a habit of putting 'NDOS:???' icons for all
unrecognized disks. This is very annoying for users of
CrossDOS and DiskSpare disks. HIDE will force Workbench
to hide all those 'NDOS:???' icons, including the ones for
unformatted disks. This option also implies DELAY.
RAMICON - changes the icon for a Ram-Disk. 'ENV:Sys/def_ramdisk.info'
is used to represent the new Ram-Disk icon. This option
can be used to set an icon for newly started Workbench
or to change the Ram-Disk icon of running Workbench.
This option also implies DELAY.
RESULT
RETURN_FAIL - if 'dos.library' or 'workbench.library' couldn't be
opened or command line arguments couldn't be processed.
RETURN_ERROR - NEWPATH option was given but copy of current path
couldn't be made (due to lack of memory).
RETURN_WARN - Workbench was already running and NEWPATH option was
not given or RAMICON option was given and there were
some problems with the Ram-Disk icon.
EXAMPLE
LoadWB HIDE
; Load Workbench, hide all 'NDOS:???' icons. Command will not
; return until Workbench is completely initialized.
LoadWB DEBUG CLEANUP
; Start Workbench with 'Debug' menu, move all icons after
; starting.
LoadWB NEWPATH
; Set path of already running Workbench or just start it.
LoadWB RAMICON
; Start Workbench and use 'ENV:Sys/def_ramdisk.info' as a
; Ram-Disk icon
NOTES
To hide those 'NDOS:???' icons all DOS devices are removed before
starting Workbench and restored afterwards. This might affect
multitasking!
RAMICON works by copying 'ENV:Sys/def_ramdisk.info' to
'RAM:Disk.info' before Workench is started and deleting
'RAM:Disk.info' afterwards.
MakeLink is pure and can be made resident.
BUGS
LoadWB NEWPATH sometimes hangs for a few seconds. This bug also
appears in LoadWB 38.9 command.